/**
 * 
 */
package com.cchr.acms.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cchr.acms.dao.CaseFollowUpDAO;
import com.cchr.acms.model.CaseFollowUp;
import com.cchr.acms.service.CaseFollowUpService;

/**
 * @author Zeng
 *
 */
@Service
public class CaseFollowUpServiceImpl implements CaseFollowUpService{
 
    @Autowired
    private CaseFollowUpDAO caseFollowUpDAO;
     
    public int insertCaseFollowUp(CaseFollowUp caseFollowUp) {
        int result = caseFollowUpDAO.insertCaseFollowUp(caseFollowUp);
        return result;
    }
    
    public int updateCaseFollowUp(CaseFollowUp caseFollowUp){
    	int result = caseFollowUpDAO.updateCaseFollowUp(caseFollowUp);
    	return result;
    }
    
    public CaseFollowUp getCaseFollowUpByCaseId(int caseId){
    	return caseFollowUpDAO.getCaseFollowUpByCaseId(caseId);
    }

	public List<CaseFollowUp> getAllCaseFollowUp() {
		return caseFollowUpDAO.getAllCaseFollowUp();
	}

}
